<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{%block title%} 页面标题{% endblock %}</title>
    {% block cssLink %}
    <link rel="stylesheet" href="{{ url_for('static', filename='css/base.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/form.css') }}">
    {% endblock %}
</head>
<body>
<header>
    <img src="{{url_for('static',filename='img/logo.png')}}" alt="" class="logo">
    <nav>
        <ul>
            {% if hasLogin %}
            <li><a href="/logout">退出</a></li>
            {% else %}
            <li><a href="/login">登录</a></li>
            <li><a href="/register">注册</a></li>
            {% endif %}
        </ul>

        </ul>
    </nav>
</header>
<main>
    {% block content %}

    {% endblock %}
</main>
<footer>
    {% block footer %}{% endblock %}
</footer>
</body>
</html>